package packet;

import shared.Consts.Priorities;
import server.Game;
import shared.PlayerPortfolio;

/**
 *
 * @author Joel Garboden
 */
public class PortfolioUpdateReq extends Request
{
  private PlayerPortfolio me;

  /**
   *
   * @param me
   */
  public PortfolioUpdateReq(PlayerPortfolio me)
  {
    this.me = me;
    this.priority = Priorities.DATA_UPDATE;
  }

  @Override
  public boolean processRequest(Game game)
  {
    game.playerUpdateCmd(playerID, me);
    return true;
  }

  @Override
  public String toString()
  {
    return me.toString();
  }
}
